import Cookies from 'js-cookie'

const tokenKey = 'hr-tokenKey'
const timeKey = 'hr-timeKey'

export function get_token() {
  return Cookies.get(tokenKey)
}

export function set_token(token) {
  return Cookies.set(tokenKey, token)
}

export function remove_token() {
  return Cookies.remove(tokenKey)
}

// 获取时间戳
export function get_timeStamp() {
  return Cookies.get(timeKey)
}

// 设置时间戳
export function set_timeStamp() {
  return Cookies.set(timeKey, Date.now())
}
